package com.csvw.skr.newTask.entity.visit;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Administrator on 2016/12/9.
 */
@Entity
@Table(name = "csvw_skr_task_visit_mission_indices")
public class MissionIndices {

    /**
     * 店访任务对应的指标关系ID， missionId-indicesId
     */
    @Id
    @Column(name = "pk_id", length = 50)
    private String id;
    /**
     * 指标ID
     */
    @Column(length = 20)
    private String indicesId;
    /**
     * 店访任务ID
     */
    @Column(length = 30)
    private String missionId;
    /**
     * 指标是否必须
     */
    @Column(nullable=false, columnDefinition="bit default 0")
    private boolean required;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIndicesId() {
        return indicesId;
    }

    public void setIndicesId(String indicesId) {
        this.indicesId = indicesId;
    }

    public String getMissionId() {
        return missionId;
    }

    public void setMissionId(String missionId) {
        this.missionId = missionId;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }
}
